package com.woniuxy01;

/**
 * @author 作者
 * @create 2025-08-28 9:50
 */
public class Test02 {
    public static void main(String[] args) {
        int sum=0,i=1;
        while(i<=100){
            sum+=i;
            i++;
        }
        System.out.println(sum);

        int sum2=0,j=1;
        do{
            sum2+=j;
            j++;
        }while(j<=100);
        System.out.println(sum2);
    }
}
